package com.example.dem11;

import com.example.dem4.BankCard;

/**
 * @program: xian-cheng
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-11-01 20:58
 **/
public class Test {
    public static void main(String[] args) {
        Bank bank=new Bank();
        Pig pig=new Pig (bank);
        pig.setName("野猪佩奇");
        Dog dog=new Dog(bank);
        dog.setName("旺财aaa");
        pig.start();
        dog.start();
    }

}
